import request from "@/util/request";

/**
 * @description 收藏关注谁看过我
 * @returns {Promise}
 */

export function upload(data) {
	return request({
		url: '/file/upload',
		method: 'post',
		data
	}, true)
}
/**
 * @description 贷款列表
 * @returns {Promise}
 */
export function getLoanInfoList(data) {
	return request({
		url: '/jiuquan/loanInfo/getLoanInfoList',
		method: 'GET',
		data
	})
}
/**
 * @description 贷款详情
 * @returns {Promise}
 */
export function getLoanInfoById(data) {
	return request({
		url: '/jiuquan/loanInfo/getLoanInfoById',
		method: 'GET',
		data
	})
}
/**
 * @description 收藏关注谁看过我
 * @returns {Promise}
 */

export function userAddApplyLoan(data) {
	return request({
		url: '/jiuquan/applyLoan/userAddApplyLoan',
		method: 'post',
		data
	}, true)
}